'use strict';

exports.index = function* (ctx) {
	ctx.req.title = '首页-食艺道';
    yield this.render("index.html",ctx.req.title);
};



exports.user = function* (ctx) {
    //从session中获取用户信息
    const user = ctx.session.user;
    this.logger.info(user);
    yield this.render("user.html");
};
// 着陆页
exports.active = function* (ctx) {
	ctx.req.title = '着陆-食艺道';
    yield this.render("active.html",ctx.req.title );
};
// 个人中心
exports.personalData = function* (ctx) {
	ctx.req.title = '个人中心-食艺道';
    yield this.render("personalData.html",ctx.req.title);
};
// 售后服务
exports.service = function* (ctx) {
	ctx.req.title = '售后服务-食艺道';
    yield this.render("service.html",ctx.req.title);
};
